import axios from 'common/js/axios'
// 用户列表
export function UserSaasList(json) {
    const url = '/Worker/userSaasList'

    return axios.post(url, json)
}

// 用户明细
export function UserWalletLog(json) {
    const url = '/Worker/userWalletLog'

    return axios.post(url, json)
}

// 提现审核列表
export function ApplyWithdrawList(json) {
    const url = '/Worker/apply-withdraw'

    return axios.post(url, json)
}


export function ApplyWithdrawResolve(json) {
    const url = '/worker/apply-withdraw-resolve/' + json

    return axios.get(url, {})
}


export function ApplyWithdrawReject(json) {
    const url = '/worker/apply-withdraw-reject/' + json

    return axios.get(url, {})
}

// 账号管理
export function AccountList(json) {
    const url = '/user/accountList'

    return axios.post(url, json)
}

// 创建中国账号
export function Create(json) {
    const url = '/admin/create'

    return axios.post(url, json)
}

// 账号更新
export function AccountUpdate(json) {
    const url = '/user/accountUpdate'

    return axios.post(url, json)
}

// 账号创建
export function AccountCreate(json) {
    const url = '/user/accountCreate'

    return axios.post(url, json)
}

// 账号删除
export function AccountRecycle(json) {
    const url = '/user/accountRecycle'

    return axios.post(url, json)
}

// 操作模块
export function LogModules(json) {
    const url = '/action/logModules'

    return axios.post(url, {})
}

// 操作日志列表
export function LogList(json) {
    const url = '/action/logList'

    return axios.post(url, json)
}

// saas平台账号列表
export function SaasList(json) {
    const url = '/admin/saasList'

    return axios.post(url, json)
}

// saas平台账号信息
export function SaasInfo(json) {
    const url = '/admin/info'

    return axios.post(url, json)
}

// saas平台账号启用和禁用操作
export function SaasStatus(json) {
    const url = '/admin/saasStatus'

    return axios.post(url, json)
}

// saas平台账号更新
export function SaasUpdate(json) {
    const url = '/admin/update'

    return axios.post(url, json)
}

export function DeliverResume(json) {
    const url = '/Job/deliverResume'

    return axios.post(url, json)
}

export function RedBagLog(json) {
    const url = '/Worker/redBagLog'

    return axios.post(url, json)
}
